package com.java.module.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.java.common.lang.domain.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 地区对象 system_region
 * 
 * @author Administrator
 * @date 2021-07-07
 */
@ApiModel(value = "地区响应")
public class Region extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty(value = "地区ID", position = 1)
    private Long id;

    /** 删除状态 */
    @ApiModelProperty(hidden = true)
    private Integer delFlag;

    /** 名称 */
    @ApiModelProperty(value = "地区名称", position = 1)
    private String name;

    /** 首字母 */
    @ApiModelProperty(value = "首字母", position = 1)
    private String firstLetter;

    /** 类型 */
    @ApiModelProperty(hidden = true)
    private Integer regionType;

    /** 上级ID */
    @ApiModelProperty(hidden = true)
    private Long parentId;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setFirstLetter(String firstLetter) {
        this.firstLetter = firstLetter;
    }

    public String getFirstLetter() {
        return firstLetter;
    }

    public void setRegionType(Integer regionType) {
        this.regionType = regionType;
    }

    public Integer getRegionType() {
        return regionType;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getParentId() {
        return parentId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId())
                .append("delFlag", getDelFlag()).append("createBy", getCreateBy()).append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).append("name", getName())
                .append("firstLetter", getFirstLetter()).append("regionType", getRegionType())
                .append("parentId", getParentId()).toString();
    }

}